AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")

function ENT:Initialize()
	self.Entity:SetModel( "models/props_c17/canister01a.mdl")
	self.Entity:PhysicsInit(SOLID_VPHYSICS)
	self.Entity:SetMoveType(MOVETYPE_VPHYSICS)
	self.Entity:SetSolid(SOLID_VPHYSICS)
	self.nextthink = CurTime()
end

function ENT:SpawnFunction( ply, tr )
	if ( !tr.Hit ) then return end
	local SpawnPos = tr.HitPos + tr.HitNormal * 36
	local ent = ents.Create( "effecttest" )
	ent:SetPos( SpawnPos )
	ent:Spawn()
	ent:Activate()
	return ent
end

function ENT:OnRemove()
end

function ENT:Use( activator, caller ) 
	local pos = self.Entity:GetPos()									
	local effectdata = EffectData() 
	effectdata:SetStart( self.Entity:GetPos() ) 
	effectdata:SetOrigin( pos + Vector(100,100,100) ) 
	effectdata:SetScale( 200 ) 
	effectdata:SetMagnitude(39)
	effectdata:SetEntity(self.Entity)
	util.Effect( "transportcore", effectdata,true,true ) 
end  

 
											 
											
